package oracle.springbootxm.service.impl;

import oracle.springbootxm.dao.userdao.UserMapper;
import oracle.springbootxm.pojo.UserInfo;
import oracle.springbootxm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public void addUserInfo(UserInfo userInfo) {
        userMapper.addUserInfo(userInfo);
    }

    @Override
    public UserInfo queryUserInfoByName(String username) {
        return userMapper.queryUserInfoByName(username);
    }

    @Override
    public void addSuperUserInfo(UserInfo userInfo){
        userMapper.addSuperUserInfo(userInfo);
    }
}
